﻿<phone:PhoneApplicationPage 
    x:Class="OnlineVideos.Search"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
     xmlns:my="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI"  
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait"
    shell:SystemTray.IsVisible="False"
    Loaded="PhoneApplicationPage_Loaded" >
    
   
    <Grid>

        
            <!--LayoutRoot is the root grid where all page content is placed-->
        <Grid x:Name="LayoutRoot" Background="Transparent">
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="80"/>
            </Grid.RowDefinitions>
            <!--Pivot Control-->
            <phone:Pivot Grid.Row="0" x:Name="pvtMainSearch" Background="{StaticResource bipivot}" >
              <phone:Pivot.Title>
                <StackPanel Orientation="Horizontal">
                    <Image Style="{StaticResource DetailPagePivotTitleImage}" x:Name="imgTitle" MouseLeftButtonDown="imgTitle_MouseLeftButtonDown"/>
                    <TextBlock x:Name="tblkVideosTitle"  Text="SEARCH" Style="{StaticResource DetailPagePivotTitle}"/>
                </StackPanel>
            </phone:Pivot.Title>
              <phone:Pivot.Foreground>
                white
            </phone:Pivot.Foreground>
            <!--Pivot item one-->
              <phone:PivotItem x:Name="pvtitmVideos">
                <Grid x:Name="ShowsGrid">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="80"/>
                    </Grid.RowDefinitions>
                    <!--<StackPanel Height="500">-->
                    <ListBox x:Name="lbxVidoes" Grid.Row="0" Foreground="White" SelectionChanged="lbxVidoes_SelectionChanged" Margin="0,-5,0,15">
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                    <TextBlock Text="{Binding Title}"  FontSize="26" Height="90" TextWrapping="Wrap" Foreground="White"></TextBlock>
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                    </ListBox>
                    <Canvas>
                        <TextBlock Margin="100,200,0,0" FontSize="28" x:Name="tblk" Visibility="Collapsed" />
                    </Canvas>
                    <!--</StackPanel>-->
                </Grid>

            </phone:PivotItem>
              <phone:PivotItem x:Name="pvtitemSongs" Header="videos">
                <Grid x:Name="LinksGrid">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="80"/>
                    </Grid.RowDefinitions>
                    <!--<StackPanel Height="500">-->
                    <ListBox x:Name="lbxSearchSongs" Grid.Row="0" Foreground="White" SelectionChanged="lbxSearchSongs_SelectionChanged" Margin="0,-5,0,15">
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                    <TextBlock Text="{Binding Title}"  FontSize="26" Height="85" TextWrapping="Wrap" Foreground="White" Width="400"></TextBlock>
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                    </ListBox>
                    <Canvas>
                        <TextBlock Canvas.Top="230" Canvas.Left="80" FontSize="28" x:Name="tblkFavNoSongs"  Visibility="Collapsed" />
                    </Canvas>
                    <!--</StackPanel>-->
                </Grid>

            </phone:PivotItem>

              <phone:PivotItem x:Name="pvtitemAudioSongs">
                    <Grid x:Name="AudioGrid">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="80"/>
                        </Grid.RowDefinitions>
                        <!--<StackPanel Height="500">-->
                        <ListBox x:Name="lbxSearchAudioSongs" Grid.Row="0" Foreground="White" SelectionChanged="lbxSearchAudioSongs_SelectionChanged" Margin="0,-5,0,15">
                            <ListBox.ItemTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding Title}"  FontSize="26" Height="85" TextWrapping="Wrap" Foreground="White" Width="400"></TextBlock>
                                </DataTemplate>
                            </ListBox.ItemTemplate>
                        </ListBox>

                        <Canvas>
                            <TextBlock Canvas.Top="230" Canvas.Left="80" FontSize="28" x:Name="tblkFavNoAudioSongs"  Visibility="Collapsed" />
                        </Canvas>
                        <!--</StackPanel>-->
                    </Grid>

                </phone:PivotItem>
              <phone:PivotItem x:Name="pvtitmCast" Visibility="Collapsed">
                <Grid x:Name="PeopleGrid">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="80"/>
                    </Grid.RowDefinitions>
                    <ListBox x:Name="lbxCast" Grid.Row="0" SelectionChanged="lbxCast_SelectionChanged" Margin="0,-5,0,15" Foreground="White">
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                    <TextBlock Tag="{Binding PersonID}" Text="{Binding Name}"  FontSize="28" Foreground="White" Height="70" TextWrapping="Wrap"></TextBlock>
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                    </ListBox>
                    <Canvas>
                        <TextBlock Canvas.Top="230" Canvas.Left="80" FontSize="28" x:Name="tblkcast" Visibility="Collapsed"/>
                    </Canvas>
                </Grid>
            </phone:PivotItem>
              <phone:PivotItem x:Name="pvtitemquiz" >
                    <Grid x:Name="QuizGrid">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="80"/>
                        </Grid.RowDefinitions>

                        <ListBox x:Name="lbxSearchQuiz" Grid.Row="0" Foreground="White" SelectionChanged="lbxSearchQuiz_SelectionChanged" Margin="0,-5,0,15">
                            <ListBox.ItemTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding Name}" FontSize="26" Height="85" TextWrapping="Wrap" Foreground="White" Width="400"></TextBlock>
                                </DataTemplate>
                            </ListBox.ItemTemplate>
                        </ListBox>

                      
                        <Canvas>
                            <TextBlock Canvas.Top="230" Canvas.Left="80" FontSize="28" x:Name="tblkquiz" Text="" Visibility="Collapsed" />
                        </Canvas>

                    </Grid>

                </phone:PivotItem>

            </phone:Pivot>
            <StackPanel  Name="adstSearch" Grid.Row="1" Orientation="Vertical" Margin="0,0,0,0">
            </StackPanel>
        </Grid>
      

        <!--Panorama-based applications should not show an ApplicationBar-->


        <toolkit:PerformanceProgressBar
            VerticalAlignment="Center"
            x:Name="_performanceProgressBar" Foreground="Red"/>
    </Grid>
</phone:PhoneApplicationPage>